<template>
	<view class="about">
		<!-- <view v-if="hasLogin"> -->
		<!-- 导航 -->
		<u-navbar back-icon-color="#000000" title="支付" title-color="#3F3F3F" :title-bold="true" :background="background"></u-navbar>
		<!-- end -->
		<view class="middle">
			<view class="icon">
				<image src="../../static/icon/pay.png" mode="" v-if="type == 1"></image>
				<image src="../../static/icon/pay1.png" mode="" v-else></image>
				<view class="banben" v-if="type == 1">支付成功</view>
				<view class="banben" v-else>支付失败</view>
			</view>
			<view style="margin-top: 230rpx;text-align: center;" v-if="type == 1">
				<u-button type="warning" shape="circle" size="medium" plain @click="dingdan()">查看订单</u-button>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			background: '#fff', // 背景色
			orderId: '',
			type: 0
		};
	},
	onLoad(option) {
		this.type = option.type;
		this.orderId = option.orderId;
		let pages = getCurrentPages(); //获取所有页面栈实例列表
		let prevPage = pages[pages.length - 2]; //上一页页面实例
		prevPage.$vm.isMade = 1; //修改上一页data里面的sh参数值为100
	},
	methods: {
		dingdan() {
			uni.navigateBack({
				delta:1,
			})
			
		}
	}
};
</script>

<style scoped lang="scss">
.about {
	background-color: white;
	font-family: PingFang SC;
}
.icon {
	padding-top: 260rpx;
	text-align: center;
}

.icon image {
	width: 151px;
	height: 138px;
}
.banben {
	font-family: PingFang SC;
	color: #3f3f3f;
	font-size: 40rpx;
	font-weight: bold;
	padding-top: 44rpx;
}
</style>
